package com.yzt.message;

public class MessageConstants {

    //系统后台消息
    public static final String TYPE_ACCOUNT_BACKGROUND = "4806";

    //互动消息
    public static final String TYPE_INTERACTIVE_MESSAGE = "1";

    //系统通知
    public static final String TYPE_ACCOUNT_SYSTEM = "2";

    //支付助手
    public static final String TYPE_ACCOUNT_PAY = "4";

    //推送
    public static final String TYPE_PUSH_NOTICE = "13";

    //通知粉丝
    public static final String TYPE_ACCOUNT_NOTICE_FENS = "1002";

    //在线客服ID
    public static final String TYPE_NOMI_SERVICE = "10000";

    /**
     * 判断是否为特殊消息
     *
     * @param fromAccount 消息来源账号
     */
    public static boolean isSystemUser(String fromAccount) {
        return MessageConstants.TYPE_ACCOUNT_SYSTEM.equals(fromAccount)
                || MessageConstants.TYPE_INTERACTIVE_MESSAGE.equals(fromAccount)
                || MessageConstants.TYPE_ACCOUNT_PAY.equals(fromAccount);
    }
}
